package pri.ydy.educms;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author YeDongYong
 * @date 2020/12/12 - 13:42
 */
@EnableDiscoveryClient  //Nacos注册
@SpringBootApplication
@ComponentScan({"pri.ydy"})//扫描指定位置
@MapperScan("pri.ydy.educms.mapper")//扫描mapper文件位置
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class,args);
    }
}
